package com.fuyd.pms.background.repository;

import com.fuyd.pms.entity.account.MerchantUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * 商户用户资料持久层
 * Created by fuyongde on 2015/12/25.
 */
public interface MerchantUserDao extends PagingAndSortingRepository<MerchantUser, String>, JpaSpecificationExecutor<MerchantUser> {

    /**
     * 根据用户名查询用户个人资料
     *
     * @param username 用户名
     * @return 用户个人资料
     */
    MerchantUser findByUsername(String username);
}
